Got rid of unnescesery afterClass cleanup method in junit tests and added conditional statement so file is only deleted if it exists
Added junit test for testing inputStream and constructor is working fine. Also corrected a mistake in the constructor as was previously returning void