Close #19: Add check that QueueFactory is used in right context