tests for transactions model