Added test for clearing the selectize component and fixed an runtime

Fixes #15