add test median with offset