Added const qualifier to function.
Added test code to run loop through all get_ijk / get_xyz combinations.