created api test for session controller and base controller inherting all other required controllers