fix bug with core/test