Updated logging and added posttest