[API] Fixed tests for nested types