added unit testing and fixed paths