model: Implement getData() and add test for it