finish all unit test bugs