adding test cases to check values from the beforeCreate() callback