Test return value of shared object