modified test_common_layers.cpp