Added unit tests and new point class