Update test.js

update tests. This is more like example and will be moved to separate folder in future.