Added tests for hasData and getData methods