Refactor test methods to simply usage of more common HTTP calls with JSON