Fixed function_builder() and added if name main block.

Fixed funtion builder with keyword arguments and printed out test cases.