appendData is actually a method, not an attribute/writable. Is this what you intended to test?