This adds two test cases to create dynamic threads, and one test case to make sure permissions are set correctly. Origin: Original Signed-off-by: Daniel Leung <daniel.leung@intel.com>