fixes the tests to check with the js object is correctly created
fixes the postfix logic