fixing async test cases and reconfiguring routes