unit tests, need more
fleshing out defined scope functions