Error when testing package using iron:router


I have a package which uses iron:router. When I run

meteor test-packages mypackage 

I get the following error in the browser console

Uncaught TypeError: Template.__create__ is not a function(anonymous function) @ layout.js:286(anonymous function) @ iron_layout.js?d62e492972d7f97328c54d2ba052d5adf0cf0d9a:534(anonymous function) @ iron_layout.js?d62e492972d7f97328c54d2ba052d5adf0cf0d9a:541
router.js:61Uncaught TypeError: undefined is not a function

I have raised an issue at Could anyone tell me if I’m just doing something really silly and obvious that I’ve missed :smile: