add helper for setting up test environments