Added additional check to placeToken and added additional test. Also, used consistent naming convention.