Added skeletons for CommandHandler testing.
Added function applyPureHandler.