tests and error