Add unit tests for the typeof() operator

refs #8002