Added tests for creating layers from shape tuples