Added test and implementation for the UICommandsHandler