Add new tests for getData() method