Add elog() to tools_common, and checks for the executable in each test. Change-Id: I3c6334eca62c0b56040d91145abbe1bf5f9c763c