Adds tests and fix for bad float and int reading.