I would hope that the only way such an app gets trough Apple's review process is by cheating (e.g. detecting that it is being reviewed and behaving differently).
I would also hope that once Apple realizes this, the developer is banned right away – which does not seem to be the case (yet). While the app in question is not available in the App Store anymore, the developer's other apps employing the same scheme still are.