tests from https://github.com/tommytcchan/js-test-examples