lib/folders_tests refactored to LinuxPaas design; lib tests now all pass