Refactor test system
Now each test contains all dependencies in own JS file. So, there are a lot of duplicated funcs. It's not good — error in one funcs need to be fixed in multiple places and files.
What is the proposal?
Create test-lib.js
with common funcs and basic pre-test features: set up global variables, etc...