added test to check proxy logic