Changed test of static call returning a boolean to use Boolean.valueOf because it's more stable than getBoolean