On the Administration Panel, go to "Allocate a test to candidate" and select 'Allocated'. Beside the licence code you wish to change, select "Amend".