rewrite tests to pass in chrome and firefox
cleanup
Merge pull request #994 from hpinkos/creditSpec

rewrite tests to pass in chrome and firefox