added tests for loading data.