adds spec for apply template logic
replaces pending specs