Add junit for AccessManager