do not write credit into database
tests for insertion with template