Testing cqrs framework