Adds tests for dynamic type resolving