Testing for invoking phantomjs template