Adds tests for posttype struct loading