full tests on all functions included in dense.go file (PASSED)