standalone test: fixed major bug