Add a contract for unit tests
Make sure we use a temporary variabale to be passed by references