Added test for user mode and swi