some steps towards testable snippets