Added SimulatedServer for authentication testing. Fixed really silly bug where apiEndpoint was a static variable, causing non-deterministic async behavior.