fixed incorrect unit test