Pass args instead of closures to assertRaises
Fix inaccurate documentation