added connect and compute test case in neuronlayertest

renamed connect to connectWith