Added unit-tests for "data" method