[e2] add test mode