Tests added for function behavior.