moved test into correct package
throw exception if ids not set