modified test to no longer print expected exception stack trace to
STDOUT
updated version