added unittest to code
renaming