Fixed up precision@K testing code and added testing across shells in pyTesting.