add basic tests; use selection-position module