Added logging and added support for valgrind strategy.

When tests passed, but valgrind failed and valgrind_strategy is fail
![screen shot 2014-09-23 at 01 18 08](https://cloud.githubusercontent.com/assets/1354151/4365533/c5027082-42ae-11e4-8448-012b4a620870.jpg)