Test compound id generation and simplification