Fixing assertion for post type in unit tests