Tests

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