fix build error; add tests for active bit