Added test to core-spec.