Complete adpreplic_app unit tests