Tidy access modifiers. Bump phantomJS version. Add failing test.