Support for name attribute

Adding name attribute which can be used to decide what to show on the
labels. Fixes #5

Also fixes for tests with the wrapper div