add assertions on return-value
add test for nonexistent template file