Testing calcSelectivities function