Add tests and changelog entry for #576 (silently fixed by 67c3be7a)

http://www.freebasic.net/forum/viewtopic.php?p=196932#p196932