Added populatePostVar() with test & example