Finalizes tests