Add some texture-related tests

cc #15