add simple phantomjs tests

I added some simple phantomjs tests.  If you can review it and let me know if this is the correct way to go?