Added setData with tests