#10 fixed test and implemented link size computation
#10 fixed test