Troubleshooting writer class tofile function writing some more tests for this