Added Main Functions for Unittest 

I've added a main function to each of the test files to allow the unittest to work.