User to have_many Credit
add test cases for creating transactions