Added more test for clientfactory