added more test cases for custom attribute