added functional tests.  fixed line shadow bug