Moved creating partner from library to helpers; wrote another unit test.