Test checkname and Log