Added tests and started response factory.