Correctly assign branch from heads that include slashes
Fix branch assignment for github
Replace single quotes with double quotes
Restructure gitlab tests for new rspec syntax