Add unit tests covering bad inputs. Make tests succeed.