implemented composeMessage(...) and added first tests