restructured initialization of gauge
rename test file
rename test file
formatting
moved logic from index to metrics
formatting