Added test for failing inputs

Fixes #1