Add test and code for Deuce