added regression tests for compose bug, merge pull request 8