tests and an error correction