Basic unit tests, save as function