Added more methods to geometric primitives and more test cases.