added assign test and corrected the extra end #144 #145 #146 #200