Added tests for Bitbucket provider (#530)