Backport boto modules/states/tests

- Backport #14601 to 2014.7
- Backport #14701 to 2014.7
- Backport #14732 to 2014.7
- Backport #14747 to 2014.7
- Backport #14772 to 2014.7
- Backport #15168 to 2014.7