add tests for tags and images controllers