Datepicker popup config tests

I think it is okay now. Please tell me if something is missing.