metamer: accordion: added tests for JS API