unit testing continued

Tests for most basic template functions added