Controller test and remove directive