Added spec and factory for vocabulary