fixed test to handle dir structure. Recursive dir visiting. Now actually tests program dir (wasn't done before)