address @mrdoob's and @WestLangley concerning new math additions, add unit tests.