Move test structure to abstract parent class