port from using internals to proper api to get the current console
the previous code simply used internal elements of the testapi which wasnt strictly speaking public api