Added enc test