Added some comtroller tests
Added DeprecatedApi annotation and replaced explicit response header
Removed type target definition