Fix test failure
Use rake instead of script/test
Fix test