This is not a problem I think because you nested the function but JFYI quite a few test frameworks look for functions that start with "test" in order to run them as tests. My convention for these aux things is to use the word "checkSomeProperty" or "assertSomeProperty".