Added a Test

I added one test to check that the app exits when an invalid template
is used