* Adapted the euclidean layer test based on innerproduct layer test.