unit testing. some testing done on static functions...