Added some simple unit tests for the v1 api.