fixing tests regarding failing configs, added apg and php5-cli to travis config