This patch creates a couple of tests around how autoeject works.