Tests to verify fix and error behavior