tests for enter/exit in callback and general cleanup