more deck functionality and deck tests