port unit tests from erlang depselector library