compile modules as less as possible.
adding frame test case.