fixed an error in test