Test get_terminal and element repr...

I want to get unit test coverage to 100%!
Factor out common logic in element alignment setting...

It bothers me when I repeat myself.

It bothers me when I repeat myself.