These tests are copied 4 times. Any chance of using a loop?