the inital tests with phantomjs work, now only to write tests of the functionality