Added tests
working for horizontal