bug in tests fixed