geometry tests

add unit tests of geometry