redefine the father test class

1. change it inherited from object to support abstract method
2. change test case from embed in code to define in setup