Test for contents()