Add in some tests for invalid documents