Updated setParentData and setSelectedAccession so that it can handle duplicate GIDs within the parameter list

Updated JUnit tests to cover scenario where duplicate GIDs are in supplied parameters