Fix isSuspended logic to wait rather than spin lock. Add test for suspend / resume.