removed duplicated spec helpers
first test of mapping the types to messages