Bugfix seed lens for unit test

fixes #55 
fixes #57 
fixes #52 
fixes #50 by using ` open(kwargs.get('agent_state_out_file'), 'w').close()`