added test to expose standard report bug and fixed bug