Fixed incorrect handling of invalid values and added a unit test to test for this.
Adding missing test data file