updated test to use updated constructor