added test to check if a correctly balanced string returns true