Updated unit tests to use FlaskLoopback and Requests for API testing