Add test for protected on_***state***_entry, should fail on some Ruby versions