Work on the tests. Fix test_empty_error