Fixed an error in rspec
generate_reference not working yet