Add tests for disabled blob edit button cases v2

v1 https://github.com/gitlabhq/gitlabhq/pull/7887