add tests for generic data preparator and model constructor