test for testing if before_save callback works properly