Fix failing tests relating to licenses controller