Fix failing tests for slim
Fix failing tests for slim

The existing tests were relying on slim internals, and were breaking
across upgrades. This makes the tests more lenient and just checks that
they include the desired text.

DefaceCommunity/deface,DefaceCommunity/deface