Removed log in test
added flush that waits for io to finish