Fix get_subjects and get_target_audiences not to return non-declared subjects or target audiences.
Update tests.