test encapsulation

-added tests.h and tests.cpp to encapsulate our testing and make main
cleaner