fixed misnamed function
started creating unittests for main