Wrote a deck test and fixed deck bugs.