Fixed tests failing in pull requests for branches other than master