[test] Moved function to acquire default context to Helpers so that other test can use it.