fix getpoint(0,0)

and add more tests