fixing transient collection funciton and test