Move state to own file for tests
mocha-phantomjs
Merge commit '690362e9c6'
first unit tests