fixed test cases and examples