added working tests for #397
add an exposed port for testgrunt to not clash with devgrunt
close #397 by passing tests
fixed the tests to work all around
pass ALL of the updated tests for #397