volume compare functions with tests