checkpoint: add static method to User to set password hashing work factor. Set to 1 for testing to make the unit tests faster