Unit tests for data module