adds unit tests