Fix correct handling of POST parameters
Test cases for customer- and card related functions