Add test for self being passed into enum function