Changed error message in test