Add more test cases and re-factored rest editor panel