fix test code nil to @“” and add some test code