testing gauss method