There seems to be a lot of repetition in these tests - can you try to remove some of the duplication?