Tests cleanup


based on https://github.com/hibernate/hibernate-search/pull/457