Testing and finalize