Fix tests and check return codes