Update getLayers test
Updated test to check a MultilayerPerceptron copy
Created equals method