Add unit tests and round the position