updated test funcitons