Reverted nv.utils.getColor() to allow functions passed in.  Added tests.