adds transactions test and implementation