add rspec test for static_apge apl