make tests fail better
allow running in PhantomJs
remove some logging