add tests for data functions & term views