refactoring in SparkRestApi
extend testAuthentication
only check for queryParams login when using POST