added unit testing for rel_* functions