Added tests with mocked api and fixed small typo in template