refactored test cases and let every test case be with auto server
running.