Detect invalid usage of UserTransaction