Return a correct exit status from tests

Fix test 38 for Xcode 6