handle context switching when doing testcase
use mixer library to generate fake model instance