Ad hoc snippets and test cases