Fixing apply tests