Add cleanup, preconditions and postconditions

checks to acceptance tests