add some test case and fix the altstart issue