create spec file to test mediafile
add require spec_helper to file
adds validations for media_files attributes