Add tests on error.message