Just FYI, only the `Test` needs to reside in the root package.

```scala
package scala {
  object X {
    def nefarious = scala.Foo.packagePrivateMethod
  }  
}
object Test extends App {
  scala.X.nefarious
}
```