select a deck test from db