fix bitbucket_projects_test.go compilation
Created by: sashaostrikov
Unit test compilation is fixed after cherry-picking https://github.com/sourcegraph/sourcegraph/commit/1881df46d954842cb8ba828ef1e4f45431653d18 and https://github.com/sourcegraph/sourcegraph/commit/dda458ed8922cc48a10f256492ccb6550abe1381 from main to 3.40
Test plan
Tests should pass