add 'rake all' task and fix several issues.

add 'rake all ' task for all spec files.
fix several issues.