test: add complete ElasticBeanstalk test.
simplify some ElasticBeanstalk APIs.