update tests
get pos code in the same way for both ug and pg