More copy and paste?  We should move the "main" function to it's own file if it is still needed.  Please use gtest for any test code.