changed test to make them also usable for rest component