Adding tests for the mobile login page.
Testing more of rest_dispatch, removing unused method