Fixed a new incompatibility with reset.

Added a new test. Reset wasn't tested before.