Fix failed tests in deckTest, add more test to it and add tests for deckEntityManager