simple getter with test cases