add templateview skeleton and tests