Configured karma and written test for the version directive