updated tests for web services and fixed tests for API
attempting to solve cookie mystery
added three tests to main.test.js