Are you shure you need to unload the model?
Unless the model is realy big (0.5GB+) or you have many (100+) models you use once and then remove them or the model file has changed since last you loaded it, then you usually don’t have to bother with unloading models.
Also I don’t think unloadModel returns any value, just do
Test.removeNode()
loader.unloadModel('the path to the object .bam')