update tests to account for extra 2px padding, move pre-render to
constructor