use RSpec 3 for test and fix deprecate syntax

Use next major version of RSpec. This change fixes deprecated sysntax reported as error.
`should` syntax is also deprecated, use `expect` syntax instead. If you want to use `expect` syntax from now, I will also fix it.