added some thread checking logic in tests and fix(ing) issue with wrong netty thread being used