changed layer2 func names to be l2_name, and fuse interface names to be l3_name

fixed a small bug in TestMain (old code did not reset buf across cmds)