Added test for getData