Added tests for each main module