updated test main