set up a lua test case for custom attribute