Fix API and add tests.
Start to implement visa backend.