unit testing & methods complete