finished names test class, fixed small bug in name.cc