test get value in different branch