remove some useless files add tests for api_controller and sessions_controller