Add tests for vertical/horizontal alignment
Move value rounding to the method