Added tests for private class, interface and trait.