Added tests for payment controller

[#162]