Bring back pragma to fix tests
Remove usage of transferProps and false returns for events