Testing

Added Mocha for testing mocking and stubbing. Added guard for easier testing. Added a sample controller test (basic).