add test for cleaner error message