Test EventSource states for different status codes. Should print a series of PASS messages followed by DONE.