Test attr init val int

Partially fixes issue #276 and add the test to exhibit the remaining bad behavior of the issue