add tests to composite support and refactor to use 'Try' in beforeTest method