Add tests for MainMenuActivity
Fix bluetooth connection bug.

The bluetooth socket was not being closed when the user hit the back
button during connection.
Tidy up code and comments