Added a build status image to README.md, Modified return code in test.cpp