Tests return code in tests