added layer unit tests