Finished cell-test

- Fixed many compilation errors.
- Finifhed test on cell. Plan to use CuTest as test framwork.