app_lib/choose_tests refactored to LinuxPaas design; app_lib tests now all pass