Added simple tests for function return values