Re-organize test directory both for backend and frontend test.