Added tests for distance, email, file, integer and site from fields, bugfixes