Fixed bugs
fixed corner case zero extend
tests