[#22] Test case for potential self refresh bug.
[#22] Fixed wrong inverted condition on dll flag.
Merge pull request #23 from ravenrd/test_self_refresh

Added test for self refresh, fixed bug #22