add tests for events
prettify test names
add Lang.hasKeys
run tests under phantomjs
refactor structure