Simplified typeof undefined tests.