add tests and uncover an error