tests: use error constants file for errors