test and document on setting manifest and fixing manifestdir