added testing functionality. referenced how testing is done in the julia lang code. (on github)