Fixed some code related operation testing