What does ‘Man!’ mean?

( n ) An emphatic interjection. Man, that was a hard test!