Updated the test to be synchronous.