fix exception on tests finish (build)