added snippets for unit testing methods