added another test to check for empty string productions in Tests.java
Fixed an index out of bounds exception.