added test for downcase
changed implementation of before save