S&P 500’s $8 trillion rally will be tested by tricky earnings season