as.data.frame() added to test file