Set post_status to 'any' for get_*_by functions. #2123
Add unit tests for #2123