tests & core API