fix rspec failed due to no registration information