fixed testing error