add unit test and delete unused class