Updated form types and tests to use publishedWhen