Add tests for options, fix googleapis instantiation