Some refactorings on StockRepositoryTest