added tests for Length and Lerp, changed structure

Also removed returns from functions writing to a reference parameter for
those functions with corresponding unit tests. (More on the way)