added testing/example main function

added testing of modules inside the main function