removed unnecessary setData method and added another test