Tests for contents()