3-D functions, proper unit tests