Fixed tests and upgraded karma config. Now uses Phantomjs to test against