It's not really safe to assume the extension is enabled. I'm pretty sure the board is setup once for all functional test cases, so if two test files are used, one will not be correct.

You can probably remove this entirely and just use the is_enabled/etc methods.