Enhanced testing; now it is automated through phantomjs on command line