fix tests

Use bailey.js to generate expected results for tests.