basic tests and data correction