[Minor] Pass serialize is now a static method
[Minor] Pass locations key serialization fixed
More tests added for pass classes