Unit tests for dynamic type builder