Fix the closing test