fixed inaccurate unit test