solve testing problem with mocks
Merge branch 'api' of https://github.com/sfu-fas/coursys into api