Remove constants.rb and update tests