Added some tests
All tests are now working
Fixed tests on phantomjs