changed misspelled tempalates
added a couple of unit tests