https://github.com/freebsd/freebsd-src/pull/601 has a nice test with it. It should be a regression test ala ATF. It's not quite structured like that now.