decode from file test