Add tests expecting raising of InputError on invalid input; replace require line
Add require line for InputError; add if/else catches for invalid input
Add require line for InputError
Add require line for InputError
Replace require line
Replace require line