Fixed broken test as now expected behaviour is a thrown exception