add phpunit config file for test suite and update tests and remove all unused method on entity