Added get_base_file method to Layer
Fixed references to typename in tests.