Fixed little bug in tests