tests: better angular templates generation, closes #41