[CHORE] Refactor api tests into separate module.
Merge branch 'master' of github.com:ripple/ripple-gateway