bug in tests is fixed