Add test cases for gitlab mode