add unittest for core-ajax-dart and core-collapse

see also the comments in #43