A little refactoring of the test