Fix tests

PhantomJS doesn't have classList support