Implemented all the unit tests for the main and canvas controllers