automate testing with pure Node.JS tests and PhantomJS tests