fixed prefix issue with transactions and wrote standardized unit tests