Small fixes

Wrong url to datepicker in example and only ran one test
Removing last tab in a tabbarray selects previous

Fixes #77