Test case added

Adding test case for the static ref update and bug fixes