added test for main functions. missing wd