Adds some Tests

@andyburke  what do you think? I go a small amount of code coverage done.
I wonder if it would be better to create the element regardless of getting passed something. In what case would it make sense to have a sidebar view without an element?

By making it always have an element, I would imagine some other code might be simplified because it can just assume the element will be there.