refactor runtime recorder
refactor runtime recorder rspec tests