generate test environment and everything else needed