adding bug testing for layer addition.