fixed tests. added decode performance test