Patched some test coverage
Reduced complexity of #ticket
Reduced complexity of #create_ticket