Fixed tests
Added tests for get_success_response
SHuffling around injection of _popup and _embed for DRY