created addCategory directive. moved tests over