fix error in tests; use assertEqual (better output)