Tests: move optional components behind skipIf

This allows us to avoid forcing tests to fail because modules like
oauth2 have not yet been ported