practice with shared preference with tests