Rename inner classes in ResourceTest

Because of a case-sensitivity warning about the synthetic
"Foo$class" generated by scalac.