with the ExtendedThread class and test added