mocha-phantomjs instead of testling
Update test code
Move test files to test/