Fix issue with placeholder attribute, update tests, closes #1