adding test to validate tooltips are centered

no functional changes
better test coverage
validating tooltip is above target

no functional changes
better test coverage
more exact test of tooltip positions

testing for equality instead of testing a range by converting values to
integers
assertion messages

assertions are explicit about intent
adding left alignment functionality to tooltips

associated tests added
adding right alignment functionality to tooltips

associated tests added
adding alignment tests to npm test script