Changed save method.
Added test case to the new behavior set in saveAndGetId(). refs #501