High-level tests of content libraries
David's unit tests, rebased and updated