Add utility function to test lib to create a test directory