switched chmod/chown functionality from module class to module function; updated test logic while I was at it