Study of a small scale position-sensitive scintillator detector for γ-ray spectroscopy