adding tests to check if uploaded file is valid