adding tests with errors codes