Tests

WIP
-----
* Added PaymentFactoryTest (finished i think)
* Started API Test