adds noValueErrorTest for sort