Added test to check that bad values throw errors.