add spec file and fixed default.rb for test.