refactor reverser
add test for Class Test problem
fixed class test
pass class test