fixing mask test and adding tab completion for set_dac