Fix unit tests

The tests now reflect failing on incorrect input instead of proceeding with the default value.