added tests for data controller