add TestDup test and fix staticFields initialization for classes that are not loaded via getClass