fixed the test for empty name