Wrap raphael add tests

Wrapping raphael provides more readability and maintainability and will help with implementation of features such as adding events or adding classes to the svg elements.