Performing deepcopy of argument, getting more sanity and removing whitespaces
Adding moar tests!