Adds tests for setData method.