Added RSpec tests for password functions. All tests passed.