Have you ensured that you have the proper rights to read the content of these "other" classes that you're trying to fetch? Also, of course, that they exist directly under the top content node (node 2)?
The easiest way to check if it's a rights problem is to run the code as an admin user. If this doesn't work, make sure that you are spelling the content class identificator correctly.