making assertions about module exports instead of stdout