Add bdd-style testing function snippets