add pieceCollection with unit test