adding tests and code for add a posted transaction back to the array controller