Added test for target mode, fixed target_direction vs. trigger_direction confusion