Updated factories to be more effective and added spec for Transaction model