On the Administration Panel, simply go to "Allocate a test to candidate" and beside the licence code you wish to change, select "Allocate/amend".