fixing apply tests