unit test done. small fix