correct arrayoutofbound exception and added basic tests
Merge branch 'master' of https://github.com/bbaugnies/Lingi2132_2.git