refactor moving templateTests/features

Close #519