common: pass in settings object
common: fix y alignment for vertical
common: fix y direction by inverting getDirection() instead
layout.tests: load in common instead of horizontal and vertical