updating test to fully cover the new code added