bug fixed in tests