Whole Rest Position Fix

- Fix (typo) of issue #128
- Unit test for table.js

It doesn't cover %100 but I think it's good enough for now.