todo karma + phantomjs test