Fix some issues in TestGetData

To fix little errors and pass tests.