Add simple tests to data and library features

Some very simple test scenarios are failing. Should the tests be changed or the code be changed?