Fixed spec tests and added -T flag for displaying tag field