Fixes from comments

remove Method testing in Decoder
use checkSize native method in Factory