Set up test environment, and added deck functionality tests.