Switch to using corrent method for added classes to an element and add test coverage
Improve checking for undefined args in ScrollBar and add test coverage for error throwing