changed debugging return value
remove nonsense checks from unit test