unit tests caught a bug