test for piece_available