add compose unit tests, convert to chaijs for assertion