payment factories and model test done