Test for getContents()