HEMERA-3396: Add tests for layouting