reorganized Abstrart/UI/APITest methods to be more flexible