completed factory method tests in #10