More tests; reusable http handlers; exported cmdtest; and more