use intent instead static field. add test case.