Returning True/False properly from test functions