added unit testing for auxiliary methods