delegate and basic unit tests working