improve spec test