use init method in coder constructor
test codes length is determined by key and mac length
move throws off boundary exception test to coder implementation testcase