moved to a parameterised test and an exception test