extracted TestCaseKey class
using new class to generate URL part and URL encode the sub-parts